package com.demo.web.base;

import java.io.Serializable;

public class BaseModel implements Serializable{
	private static final long serialVersionUID = 7573827099148434887L;
	public static final int OK = 1;
	public static final int ERROR = -1;
	private int retCode;// 请求返回状态 1 为成功 -1失败  0 处理中
	private String retMsg;// 返回信息
	private Object obj; // 返回值。
	private String htmlTitle = "支付之家"; // 页面标题

	/**
	 * 默认成功
	 */
	public BaseModel() {
		this.retCode = 1;
		this.retMsg = "";
	}

	public BaseModel(int retCode, String retMsg) {
		this.retCode = retCode;
		this.retMsg = retMsg;
	}

	public int getRetCode() {
		return retCode;
	}

	public void setRetCode(int retCode) {
		this.retCode = retCode;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public String getHtmlTitle() {
		return htmlTitle;
	}

	public void setHtmlTitle(String htmlTitle) {
		this.htmlTitle = htmlTitle;
	}

}
